<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden"  id='hidden'  name='id' value="<{$vo.id}>"/>
        <input type="hidden" name="image" value="<{$vo.image}>" id="image">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>图片名称：</label>
                <input type="text" name="name" size="25"  value="<{$vo.name}>" class='' />
            </div>
            <div class="unit">
                <label>超链接：</label>
                <input type="text" name="imgurl" size="25"  value="<{$vo.imgurl}>" class='url' />
            </div>
            <div id="preview1" href="">
                <img src="<{$Think.const.PUBLIC_URL}>Upload/<{$vo.image}>" id='topPhpto'/>               
            </div>
            <div class="unit">
                <label>图片：</label>  
                <input id="testFileInput2" type="file" name="images"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__MODULE__/Common/upImg',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:2},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'Upload/'+data);
                            $('#image').val(data);
                        }
                    }"
                />
            </div>
            <div class="unit">
                <label>排序：</label>
                <input type="text" name="sort_" size="25"  value="<{$vo.sort_}>"/>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
